package com.mjk.datasource.model;

import com.mjk.common.base.model.BaseEntity;
import com.mjk.common.base.model.annotation.DefaultValue;
import com.mjk.common.core.jdbc.annotation.ArcSharding;
import com.mjk.common.core.jdbc.annotation.ExampleField;
import com.mjk.common.core.jdbc.annotation.Filed;
import com.mjk.common.core.jdbc.annotation.Id;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

@EqualsAndHashCode(callSuper = true)
@Data
@ArcSharding(dataSource = "his", table = "MI_OPTION")
public class MiProperties extends BaseEntity {

    @DefaultValue(value = "1")
    @Filed(lenght = 255,cloum = "BAK1")
    private String BAK1;
    @Filed(lenght = 255,cloum = "BAK2")
    private String BAK2;
    @Filed(lenght = 255,cloum = "BAK3")
    private String BAK3;
    @Filed(comment = "有效标志",lenght = 255,cloum = "DEL_FLAG")
    private String DEL_FLAG;
    @Filed(comment = "电子凭证地址",lenght = 255,cloum = "ECURL")
    private String ECURL;
    @Filed(comment = "定点医药机构编号(12)",lenght = 255,cloum = "FIXMEDINS_CODE")
    private String FIXMEDINS_CODE;
    @Filed(comment = "定点医药机构名称",lenght = 255,cloum = "FIXMEDINS_NAME")
    private String FIXMEDINS_NAME;

    @Id
    @ExampleField
    private Integer id;
    @Filed(comment = "接口版本号",lenght = 255,cloum = "INFVER")
    private String INFVER;
    @Filed(comment = "就医地医保区划代码",lenght = 255,cloum = "MDTRTAREA_ADMVS")
    private String MDTRTAREA_ADMVS;
    @Filed(comment = "医保请求地址",lenght = 255,cloum = "MI_DOMAIN")
    private String MI_DOMAIN;
    @Filed(comment = "读卡器标识",lenght = 255,cloum = "READER_TYPE")
    private String READER_TYPE;
    @Filed(comment = "接收方系统代码",lenght = 255,cloum = "RECER_SYS_CODE")
    private String RECER_SYS_CODE;
    @Filed(comment = "Hmac计算时的key值",lenght = 255,cloum = "SECRET")
    private String SECRET;
    @Filed(comment = "2021医保key",lenght = 255,cloum = "X_CA_KEY")
    private String X_CA_KEY;

    private LocalTime createTime;
}